import request from '@/utils/request'

// 查询参观预约列表
export function listVisitReservation(query) {
  return request({
    url: '/pg/visitReservation/list',
    method: 'get',
    params: query
  })
}

// 查询参观预约所有列表
export function listAllVisitReservation(query) {
  return request({
    url: '/pg/visitReservation/listAll',
    method: 'get',
    params: query
  })
}

// 查询参观预约详细
export function getVisitReservation(id) {
  return request({
    url: '/pg/visitReservation/' + id,
    method: 'get'
  })
}

// 新增参观预约
export function addVisitReservation(data) {
  return request({
    url: '/pg/visitReservation',
    method: 'post',
    data: data
  })
}

// 修改参观预约
export function updateVisitReservation(data) {
  return request({
    url: '/pg/visitReservation',
    method: 'put',
    data: data
  })
}

// 删除参观预约
export function delVisitReservation(id) {
  return request({
    url: '/pg/visitReservation/' + id,
    method: 'delete'
  })
}
